package com.kust.eduService.controller;

import com.baomidou.mybatisplus.extension.api.R;
import com.kust.commomUtils.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * @author 马强
 * @Description
 * @create 2022-06-16 15:06
 */
@RestController
@RequestMapping("/eduService/user")
public class EduLoginController {

    @ApiOperation("用户登录")
    @PostMapping("/login")
    public Result login(){
        return Result.ok().data("token","admin");
    }

    @ApiOperation("用户信息")
    @GetMapping("/info")
    public Result info(){
        return Result.ok()
                .data("roles","[985帅哥]")
                .data("name","985帅哥")
                .data("avatar","https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
    }
}
